import Layout from '@/layout'
export default {
  path: '/employees',
  component: Layout,
  children: [
    {
      path: '',  //如果是子组件path为空  默认自动匹配
      name: 'employees',
      component: () => import(/* webpackChunkName:"employees"*/'@/views/employees/employees.vue'),
      meta: { title: '员工管理~employees', icon: 'people' }  //在左侧菜单显示内容
    },
    {
      // path: 'detail',  //查询参数 不要在路由接收  id
      path: 'detail/:id',  //查询参数 不要在路由接收  id
      name: 'detail',
      component: () => import('@/views/employees/detail.vue'),
      hidden: true   //不在左侧菜单显示
    }
  ]
}